---
layout: "default"
title: "Operator: prefix ..<"
description: "Swift documentation for the 'prefix ..<' operator."
root: "/v4.2"
---

<code class="language-swift"> operator prefix ..&lt; {
    associativity 
    precedence 
}</code>

<h3>Declarations</h3>

<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Strideable/"><code>Strideable</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/BinaryFloatingPoint/"><code>BinaryFloatingPoint</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/StringProtocol/"><code>StringProtocol</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/FixedWidthInteger/"><code>FixedWidthInteger</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Strideable/"><code>Strideable</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Strideable/"><code>Strideable</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Strideable/"><code>Strideable</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Strideable/"><code>Strideable</code></a>,    <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-dotdotlt_-self">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-dotdotlt_-self">prefix func ..&lt;(<wbr>_: Self)</a>
        
<div class="comment collapse" id="comment-func-dotdotlt_-self"><div class="p">
    <p>Returns a partial range up to, but not including, its upper bound.</p>

<p>Use the prefix half-open range operator (prefix <code>..&lt;</code>) to create a
partial range of any type that conforms to the <code>Comparable</code> protocol.
This example creates a <code>PartialRangeUpTo&lt;Double&gt;</code> instance that includes
any value less than <code>5.0</code>.</p>

<pre><code class="language-swift">let upToFive = ..&lt;5.0

upToFive.contains(3.14)       // true
upToFive.contains(6.28)       // false
upToFive.contains(5.0)        // false</code></pre>

<p>You can use this type of partial range of a collection&#39;s indices to
represent the range from the start of the collection up to, but not
including, the partial range&#39;s upper bound.</p>

<pre><code class="language-swift">let numbers = [10, 20, 30, 40, 50, 60, 70]
print(numbers[..&lt;3])
// Prints &quot;[10, 20, 30]&quot;</code></pre>

<p><strong><code>maximum</code>:</strong>  The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">prefix func ..&lt;(maximum: Self) -&gt; PartialRangeUpTo&lt;Self&gt;</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Comparable/"><code>Comparable</code></a>    
</div></div>
</div>
